projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b48d72
)
Fix previous calendar-in-read-only-buffer change.
author
Glenn Morris
<rgm@gnu.org>
Wed, 6 Jun 2012 18:46:34 +0000
(14:46 -0400)
committer
Glenn Morris
<rgm@gnu.org>
Wed, 6 Jun 2012 18:46:34 +0000
(14:46 -0400)
Otherwise all the mode-lines get clobbered.
lisp/calendar/calendar.el
patch
|
blob
|
history
diff --git
a/lisp/calendar/calendar.el
b/lisp/calendar/calendar.el
index 33cb57b352dd8384f810a427ded2878fb3daacd6..0d6ea8e7f4c4a6325ce5dd62444dcfe2e124fabe 100644
(file)
--- a/
lisp/calendar/calendar.el
+++ b/
lisp/calendar/calendar.el
@@
-1112,6
+1112,7
@@
with disabled undo. Leaves point at point-min, displays BUFFER."
(declare (indent 1) (debug t))
`(progn
(set-buffer (get-buffer-create ,buffer))
+ (special-mode)
(setq buffer-read-only nil
buffer-undo-list t)
(erase-buffer)
@@
-1119,7
+1120,6
@@
with disabled undo. Leaves point at point-min, displays BUFFER."
(goto-char (point-min))
(set-buffer-modified-p nil)
(setq buffer-read-only t)
- (special-mode)
(display-buffer ,buffer)))
;; The following are in-line for speed; they can be called thousands of times